// db=influxdb.InfluxDBClient(host='127.0.0.1', username='gras',password='gras100200'
// ,database='tw2_database')
// TW2-AMAC-GCYC


class Inflex {
  url = `http://${window.location.hostname}:8086/query?db=tw2_database&q=`

  execute(sql) {
    //pretty=true&
    let url = this.url + sql
    return fetch(url).then(v => v.json())
  }
}